package com.guoqing.example.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.util.Set;

/**
 * @ClassName Role
 * @Description TODO
 * @Author ZhangGuoQing
 * @Date 2020/8/16/0016 22:33
 */
@Data
@TableName("tb_role")
public class Role {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String roleName;
    @TableField(exist = false)
    private Set<Resource> resources;
}
